package com.ruoyi.oa.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;

import java.util.Date;



/**
 * 采购申请-采购列表视图对象 oa_purchase_apply_list
 *
 * @author ruoyi
 * @date 2023-03-28
 */
@Data
@ExcelIgnoreUnannotated
public class OaPurchaseApplyListVo {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
//    @ExcelProperty(value = "主键Id")
    private String id;

    /**
     * 采购申请主键
     */
//    @ExcelProperty(value = "采购申请主键")
    private String gqdId;

    /**
     * 物品名称
     */
    @ExcelProperty(value = "物品名称")
    private String itemName;

    /**
     * 规格型号
     */
    @ExcelProperty(value = "规格型号")
    private String specificationModel;

    /**
     * 数量
     */
    @ExcelProperty(value = "数量")
    private String number;

    /**
     * 单位
     */
    @ExcelProperty(value = "单位")
    private String unity;

    /**
     * 单价（元）
     */
    @ExcelProperty(value = "单价", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "元=")
    private String unitPrice;

    /**
     * 总价（万元）
     */
    @ExcelProperty(value = "总价", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "万=元")
    private String totalPrice;

    /**
     * 需求日期
     */
    @ExcelProperty(value = "需求日期")
    private Date demandDate;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remarks;

    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm",timezone="GMT+8")
    @ExcelProperty(value = "提交日期")
    @ColumnWidth(20)
    private Date createTime;

    @ExcelProperty(value = "提交人")
    private String createBy;
}
